.panel#summary
  %span{style: "float:right"}= avatar_for(@contact, size: "180x180")
  = account_with_title_and_department(@contact)

  %div= render "shared/address_show", asset: @contact, type: 'business', title: :address

  %div
    - unless @contact.phone.blank?
      == #{t :phone}: <b>#{@contact.do_not_call ? content_tag(:strike, @contact.phone) : link_to_phone(@contact.phone)}</b><br />
    - unless @contact.mobile.blank?
      == #{t :mobile}: <b>#{@contact.do_not_call ? content_tag(:strike, @contact.mobile) : link_to_phone(@contact.mobile)}</b><br />
    - unless @contact.fax.blank?
      == #{t :fax}: <b>#{@contact.do_not_call ? content_tag(:strike, @contact.fax) : link_to_phone(@contact.fax)}</b><br />
  %div
    - unless @contact.email.blank?
      == #{t :email}: <b>#{link_to_email(@contact.email)}</b><br />
    - unless @contact.alt_email.blank?
      == #{t :alt_email_small}: <b>#{link_to_email(@contact.alt_email)}</b><br />

  = web_presence_icons(@contact)

  .caption #{t :contact_summary}
  %dl
    %li
      %dt= @contact.assigned_to ? truncate(@contact.assignee.full_name, length: 16) : nil
      %tt #{t :assigned_to}:
    %li
      %dt
        - if @contact.lead
          = link_to(truncate(@contact.lead.name, length: 16), @contact.lead, title: @contact.lead.name)
        - else
          #{t :n_a}
      %tt #{t :lead}:
    %li
      %dt
        - if @contact.lead.try(:campaign)
          = link_to(truncate(@contact.lead.campaign.name, length: 16), @contact.lead.campaign, title: @contact.lead.campaign.name)
        - else
          #{t :n_a}
      %tt #{t :campaign}:

  - unless @contact.background_info.blank?
    .caption #{t :background_info}
    = auto_link(simple_format @contact.background_info)

  = render "fields/sidebar_show", asset: @contact

  - if @contact.tags.present?
    %dt
      .tags= tags_for_index(@contact)

  = render "shared/research_tools", entity: @contact

  = hook(:show_contact_sidebar_bottom, self, contact: @contact)
